﻿using System.Collections.ObjectModel;

namespace MiniFox.Net
{
    /// <summary>
    /// 
    /// </summary>
    public class ServiceCollection<TS> : KeyedCollection<string, TS>, IServiceCollection<TS> where TS : IService
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="item"></param>
        /// <returns></returns>
        protected override string GetKeyForItem(TS item)
        {
            return item.Name;
        }
    }
}
